import request from '@/utils/request'

// 查询随机记录列表
export function listRecordrandom(query) {
  return request({
    url: '/system/recordrandom/list',
    method: 'get',
    params: query
  })
}

// 查询随机记录列表
export function listByRecord(data) {
  return request({
    url: '/system/recordrandom/listByRecord',
    method: 'post',
    params: data
  })
}

// 查询随机记录详细
export function getRecordrandom(id) {
  return request({
    url: '/system/recordrandom/' + id,
    method: 'get'
  })
}

// 新增随机记录
export function addRecordrandom(data) {
  return request({
    url: '/system/recordrandom',
    method: 'post',
    data: data
  })
}

// 修改随机记录
export function updateRecordrandom(data) {
  return request({
    url: '/system/recordrandom',
    method: 'put',
    data: data
  })
}

// 删除随机记录
export function delRecordrandom(id) {
  return request({
    url: '/system/recordrandom/' + id,
    method: 'delete'
  })
}
